import { request } from '@pkg/request/src';

export enum Api {
  page = '/fullDeductionDetail/page',
  get = '/fullDeductionDetail/get',
  add = '/fullDeductionDetail/save',
  update = '/fullDeductionDetail/update',
  remove = '/fullDeductionDetail/remove',
  setRevokeState = '/fullDeductionDetail/setRevokeState',
  changeDeductionType = '/fullDeductionDetail/changeDeductionType',
  listFullDeductionType = '/fullDeductionDetail/listFullDeductionType',
}

export const listFullDeductionType = params =>
  request.get(
    {
      url: Api.listFullDeductionType,
      params: params,
    },
    { errorMessageMode: 'none', successMessageMode: 'none' },
  );
